<td width="753" valign="top">
    <table width="743" border="1" bordercolor="#ffe1b3" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="72%" height="40" class="yhbig"><?php echo $tong->getName() ?></td>
            <td width="28%" class="titsmall">帮派等级：<?php echo $tong->getTongType() ?></td>
          </tr>
          
          
        </table>
          <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="eeeeee">
            <tr>
              <td height="1"></td>
            </tr>
          </table>
          <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td class="titsmall" height="25">帮主：<a href="<?php echo SITE_URL.'sns/space.php?uid='.$hUser2->getUid(); ?>"><?php echo $hUser1->getUsername();?></a></td>
              <td class="titsmall" height="25">副帮主：<a href="<?php echo SITE_URL.'sns/space.php?uid='.$hUser2->getUid(); ?>"><?php echo $hUser2->getUsername();?></a></td>
            </tr>
            <tr>
              <td class="titsmall" height="25">成立日期<?php echo $tong->getCreatedAt() ?>：</td>
              <td class="titsmall" height="25">成员数：<?php echo $tong->getMembers() ?></td>
            </tr>
            <tr>
              <td colspan="2" height="25"  class="titsmall">简介：</td>
            </tr>
            <tr>
              <td colspan="2"><span class="word"><?php echo $tong->getDes() ?></span></td>
            </tr>
          </table>
          <table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table></td>
      </tr>
    </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/index/index_r1_c1.jpg" width="746" height="9" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/group/index/index_r3_c1.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="92%" height="30" class="tit">帮派相册</td>
              <td width="8%" class="word">更多</td>
            </tr>
            
          </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
              <?php 
			 $ncount = count($tongPhotos);
            for($i=0;$i<$ncount;$i++){
			$p=$tongPhotos[$i];
			  //foreach($tongPhotos as $p)
			  ?>
                <td><a href="<?php echo SITE_URL?>tong/gallery/tid/<?php echo $tong->getId() ?>/gid/<?php echo $p->getGalleryId();?>"><img src="<?php echo SITE_URL?>uploads/<?php echo $p->getSrc();?>" alt="照片名" width="130" height="85" border="0" class="img" /></a>
                <p><?php echo $p->getName();?></p></td>
                <?php }?>
      </tr>
            </table></td>
        </tr>
      </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/index/index_r7_c1.jpg" width="746" height="8" /></td>
        </tr>
      </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r1_c4.jpg" width="743" height="14" /></td>
      </tr>
    </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="47" valign="top" background="<?php echo SITE_URL?>img/group/photoview/group_photoview_r3_c4.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr></tr>
            <tr>
              <td width="61%" height="35" class="tit">帮派大会</td>
              <td width="39%" class="titsmall">帖子数：<span class="yh"><?php echo $topics->getNbResults();?></span>&nbsp;&nbsp;&nbsp;&nbsp;回复数：<?php echo $comments_num;?></td>
            </tr>
          </table>
            <table width="95%" border="1" bordercolor="#FFE0B1" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td bgcolor="#FFFFFF"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="20%"height="50"><table width="91" height="32" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td  background="<?php echo SITE_URL?>img/anniu/an_r17_c4.gif" class="login">&nbsp;&nbsp;&nbsp;我有话说</td>
                      </tr>
                    </table></td>
                    <td colspan="2"><table width="91" height="32" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td background="<?php echo SITE_URL?>img/anniu/an_r17_c4.gif">&nbsp;&nbsp;&nbsp;<span class="login">请选择分类</span></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="30">&nbsp;</td>
                    <td width="41%">&nbsp;</td>
                    <td width="39%"><span class="tit">分页：</span>
                    <span class="yh">
                    <?php if( $topics->haveToPaginate() ){
                   $pageurl = '/tong/show/?id='.$tong->getId().'&page=';
					echo link_to('&lt;',$pageurl.$topics->getPreviousPage());
					foreach ( $topics->getLinks() as $page ){
						echo link_to_unless($page == $topics->getPage(),$page,$pageurl.$page);
						echo ($page != $topics->getCurrentMaxLink()) ? '&nbsp;':'';
					}
					echo link_to('&gt;',$pageurl.$topics->getNextPage());
					} 
				?>
				</span>
                    &nbsp;&nbsp;<span class="word">(总计</span><span class="yh"><?php echo $topics->getLastPage(); ?></span><span class="word">页)
                    </span></td>
                  </tr>
                </table>
                  <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td bgcolor="#b3afa6" height="1"></td>
                    </tr>
                  </table>
                  <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="30" width="41%" class="titsmall">主题</td>
                      <td width="23%" align="center" class="titsmall">作者</td>
                      <td width="14%" align="center" class="titsmall">回复/人气</td>
                      <td width="22%" align="center" class="titsmall">最后回复</td>
                    </tr>
                  </table>
            <?php
			//$ncount = count($topics);
           foreach ($topics_list as $k => $t){// for($i=0;$i<$ncount;$i++){
				//$t = $topics[$i];
				?>
                  <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="41%" rowspan="2" class="word"><a href="<?php echo SITE_URL?>tong/topic/tid/<?php echo $tong->getId();?>/topicid/<?php echo $t->getId();?>"><?php echo $t->getName();?></a></td>
                      <td width="23%" align="center" class="word"><?php echo $t->getUcMembers()->getUsername();?></td>
                      <td width="14%" rowspan="2" align="center"><span class="yh"><?php echo $t->getReplayNum();?></span><span class="word">/<?php echo $t->getVisitNum();?></span></td>
                      <td width="22%" align="center" class="word"><?php echo $t->getCreatedAt();?> </td>
                    </tr>
                    <tr>
                      <td align="center" class="word"><?php echo $t->getReplayTime();?></td>
                      <td align="center" class="word">by:<?php echo $t->replayer->getUsername();?></td>
                    </tr>
                  </table>
                  <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="5"></td>
                    </tr>
                  </table> <table width="90%" border="0" bgcolor="eeeeee" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="1"></td>
                    </tr>
                  </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="5"></td>
                    </tr>
                  </table>
                  <?php } ?>

                  <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="15"></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r13_c4.jpg" width="743" height="10" /></td>
        </tr>
      </table>
      <table width="753" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="753" height="5"></td>
        </tr> 
      </table></td>